﻿<UserControl x:Class="Gao.Poker.App.View.Storage.StorageView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" >
    <Grid Margin="5">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="60"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="85"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>

        <TextBlock Grid.Column="0" Grid.Row="0" Text="商品名称：" Margin="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="13"/>
        <TextBlock Text="{Binding Path=Product.ProductName}" Margin="1" Grid.Column="1"  Grid.Row="0" FontSize="13"  Width="300" HorizontalAlignment="Left"/>

        <TextBlock Grid.Column="0" Grid.Row="1" Text="商品编码：" Margin="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="13"/>
        <TextBlock Text="{Binding Path=Product.BarCode}" Margin="1" Grid.Column="1" Grid.Row="1" FontSize="13" Width="300" HorizontalAlignment="Left"/>

        <TextBlock Grid.Column="0" Grid.Row="2" Text="计量单位：" Margin="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="13"/>
        <TextBlock Text="{Binding Path=Product.PUnit}" Margin="1" Grid.Column="1"  Grid.Row="2" FontSize="13" Width="100" HorizontalAlignment="Left"/>

        <TextBlock Grid.Column="0" Grid.Row="3" Text="数量：" Margin="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="13"/>
        <TextBlock Text="{Binding Path=Product.PNumber}" Margin="1" Grid.Column="1"  Grid.Row="3" FontSize="13" Width="150"  HorizontalAlignment="Left"/>

        <TextBlock Grid.Column="0" Grid.Row="4" Text="单价：" Margin="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="13"  />
        <TextBlock Text="{Binding Path=Product.PPrice}"  Margin="1" Grid.Column="1"  Grid.Row="4" FontSize="13" HorizontalAlignment="Left" Width="150"/>

        <TextBlock Grid.Column="0" Grid.Row="5" Text="兑换所需积分：" Margin="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="13"/>
        <TextBlock Text="{Binding Path=Product.PIntegral}" Margin="1" Grid.Column="1"  Grid.Row="5" FontSize="13" Width="150" HorizontalAlignment="Left"/>

        <TextBlock Grid.Column="0" Grid.Row="6" Text="保质期：" Margin="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="13"/>
        <TextBlock Text="{Binding Path=Product.BZQ, StringFormat='yyyy-MM-dd'}" Margin="1" Grid.Column="1" Grid.Row="6" FontSize="13" Width="200" HorizontalAlignment="Left"/>

        <TextBlock Grid.Column="0" Grid.Row="7" Text="入库时间：" Margin="1" VerticalAlignment="Center" HorizontalAlignment="Right" FontSize="13"/>
        <TextBlock Text="{Binding Path=Product.StockDate, StringFormat='yyyy-MM-dd hh:mm:ss'}"  VerticalAlignment="Center" Margin="1" Grid.Column="1" Grid.Row="7" FontSize="13"/>

        <TextBlock Grid.Column="0" Grid.Row="8" Text="备注：" Margin="1" VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="13"/>
        <TextBlock Text="{Binding Path=Product.Remark}" TextWrapping="Wrap" Margin="1" Grid.Column="1"  Grid.Row="8" Height="100" FontSize="13"/>
    </Grid>
</UserControl>
